extends TextureButton

@onready var focus_texture = load("res://assets/kenney_ui-pack-pixel-adventure/Tiles/Large tiles/Thick outline/tile_0004.png")
@onready var default_texture = load("res://assets/kenney_ui-pack-pixel-adventure/Tiles/Large tiles/Thick outline/tile_0000.png")


func _ready() -> void:
	self.focus_entered.connect(_on_button_focus_entered)
	self.focus_exited.connect(_on_button_focus_exited)

func _on_button_focus_entered():
	$NinePatchRect.texture = focus_texture

func _on_button_focus_exited():
	$NinePatchRect.texture = default_texture
